package com.zhang.view_object;

import com.zhang.data_object.UserDO;
import lombok.Data;

/**
 * @author happy
 **/
@Data // 自动添加get/set/toString/equals方法
//这个类的对象是要传给前端的,所以不要把密码记录下来
public class UserVO {
    public Integer uid;
    public String username;

    public UserVO(UserDO userDO) {
        this.uid=userDO.uid;
        this.username=userDO.username;
    }
}